<template>
  <CloudDialog
    v-model:visible="visible"
    title="错误详情"
    :width="800"
    :footer="false"
    :mask-closable="false">
    <span class="text-2 text-sm whitespace-pre-line">{{ error }}</span>
  </CloudDialog>
</template>
<script lang="ts" setup>
const visible = defineModel<boolean>({ required: true })
const error = defineModel<string>('errorText', { required: true })
</script>
